package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbUserTaskHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by jian.zhou on 2016/7/7.
 */
public interface UserTaskHistoryMapper {

    /**
     * 根据任务id查询用户当日完成任务的次数
     * @param map
     * @return
     */
    int dayTaskNum(@Param("m") Map<String, Object> map);


    void batchInsert(@Param("list") List<TbUserTaskHistory> tbUserTaskHistoryList);
}
